* process.c (sigchld_handler): Add cast, to avoid warnings on Linux.
authorJim Blandy <jimb@redhat.com>
Wed, 9 Jun 1993 12:39:16 +0000 (12:39 +0000)
committerJim Blandy <jimb@redhat.com>
Wed, 9 Jun 1993 12:39:16 +0000 (12:39 +0000)
(Fopen_network_stream): Cast the second argument to connect, to
avoid warnings on any system that provides prototypes for connect.

src/process.c

index d661aa92425cd675b3309a5802e0e8e055425d07..a834cc8a355316420cbb4c3076d544df839254c0 100644 (file)
@@ -1478,7 +1478,7 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
     report_file_error ("error creating socket", Fcons (name, Qnil));
 
  loop:
-  if (connect (s, &address, sizeof address) == -1)
+  if (connect (s, (struct sockaddr *) &address, sizeof address) == -1)
     {
       int xerrno = errno;
       if (errno == EINTR)